/*
 * @Description: 路由配置
 * @Version: 1.0
 * @Author: 琴时
 * @Date: 2021-11-25 10:28:06
 * @LastEditors: 琴时
 * @LastEditTime: 2022-04-12 13:45:19
 * @FilePath: \pt-utils\react-demo\config\routes.ts
 */
export default [
  //   { exact: true, path: '/', component: 'index' },
  { path: '/', component: '@/pages/index' },
  {
    path: '/user',
    component: '@/layouts/index',
    routes: [
      { path: '/user', redirect: '/user/info', exact: true },
      { path: '/user/info', exact: true, component: '@/pages/user' },
      {
        path: '/user/new',
        wrappers: ['@/wrappers/auth'],
        exact: true,
        component: '@/pages/user/info',
      },
    ],
  },
  {
    path: '/admin',
    component: '@/layouts/index',
    routes: [
      { path: '/admin', redirect: '/admin/info', exact: true },
      { path: '/admin/info', exact: true, component: '@/pages/user' },
    ],
  },
];
